home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / os2 / gnuwget.zip / wget-1.4.3 / src / Makefile.in < prev    next >
Makefile  |  1997-02-07  |  4KB  |  150 lines

  1. # Makefile for `wget' utility
  2. # Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2 of the License, or
  7. # (at your option) any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #
  19. # Version: @VERSION@
  20. #
  21.  
  22. SHELL = /bin/sh
  23.  
  24. top_srcdir = @top_srcdir@
  25. srcdir     = @srcdir@
  26. VPATH      = @srcdir@
  27. ANSI2KNR = @ANSI2KNR@
  28. o = .@U@o
  29.  
  30. prefix      = @prefix@
  31. exec_prefix = @exec_prefix@
  32. bindir      = @bindir@
  33. sysconfdir  = @sysconfdir@
  34.  
  35. CC       = @CC@
  36. CPPFLAGS = @CPPFLAGS@
  37. DEFS     = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\"
  38. CFLAGS   = @CFLAGS@
  39. LDFLAGS  = @LDFLAGS@
  40. LIBS     = @LIBS@
  41.  
  42. INCLUDES = -I.. -I. -I$(srcdir)
  43.  
  44. COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS)  $(DEFS) $(CFLAGS)
  45. LINK    = $(CC) $(LDFLAGS) -o $@
  46. INSTALL = @INSTALL@
  47. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  48. RM = rm -f
  49. ETAGS = etags
  50.  
  51. SRC = connect.c host.c http.c netrc.c ftp-basic.c ftp.c ftp-ls.c \
  52.       mtch.c html.c retr.c recur.c url.c init.c utils.c cmpt.c \
  53.       getopt.c main.c version.c
  54. OBJ = connect$o host$o http$o netrc$o ftp-basic$o ftp$o ftp-ls$o \
  55.       mtch$o html$o retr$o recur$o url$o init$o utils$o cmpt$o \
  56.       getopt.o main$o version$o
  57.  
  58. .SUFFIXES:
  59. .SUFFIXES: .c .o ._c ._o
  60.  
  61. .c.o:
  62.     $(COMPILE) -c $<
  63.  
  64. .c._c: $(ANSI2KNR)
  65.     $(ANSI2KNR) $< > $*.tmp && mv $*.tmp $@
  66.  
  67. ._c._o:
  68.     @echo $(COMPILE) -c $<
  69.     @rm -f _$*.c
  70.     @ln $< _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
  71.  
  72. .c._o: $(ANSI2KNR)
  73.     $(ANSI2KNR) $< > $*.tmp && mv $*.tmp $*._c
  74.     @echo $(COMPILE) -c $*._c
  75.     @rm -f _$*.c
  76.     @ln $*._c _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
  77.  
  78. # Dependencies for building
  79.  
  80. wget: $(OBJ)
  81.     $(LINK) $(OBJ) $(LIBS)
  82.  
  83. ansi2knr: ansi2knr.o
  84.     $(CC) -o ansi2knr ansi2knr.o $(LIBS)
  85.  
  86. $(OBJ): $(ANSI2KNR)
  87.  
  88. #
  89. # Dependencies for installing
  90. #
  91.  
  92. install: install.bin
  93.  
  94. uninstall: uninstall.bin
  95.  
  96. install.bin: wget
  97.     $(top_srcdir)/mkinstalldirs $(bindir)
  98.     $(INSTALL_PROGRAM) wget $(bindir)/wget
  99.  
  100. uninstall.bin:
  101.     $(RM) $(bindir)/wget
  102.  
  103. #
  104. # Dependencies for cleanup
  105. #
  106.  
  107. clean:
  108.     $(RM) *.o wget *~ *.bak core $(ANSI2KNR) *._o *._c
  109.  
  110. distclean: clean
  111.     $(RM) Makefile
  112.  
  113. realclean: distclean
  114.     $(RM) TAGS
  115.  
  116. #
  117. # Dependencies for maintenance
  118. #
  119.  
  120. subdir = src
  121.  
  122. Makefile: Makefile.in ../config.status
  123.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  124.  
  125. TAGS: $(SRC)
  126.     -$(ETAGS) *.c *.h
  127.  
  128. # Dependencies:
  129.  
  130. ansi2knr.o:
  131. cmpt$o: cmpt.h wget.h
  132. connect$o: systhings.h windecl.h wget.h options.h utils.h connect.h host.h
  133. ftp-basic$o: wget.h options.h utils.h ftp-basic.h connect.h host.h retr.h
  134. ftp-ls$o: wget.h url.h utils.h ftp.h options.h
  135. ftp$o: wget.h options.h utils.h url.h ftp.h ftp-basic.h html.h connect.h host.h http.h mtch.h retr.h netrc.h
  136. getopt$o: getopt.h
  137. host$o: wget.h options.h utils.h url.h host.h
  138. html$o: wget.h options.h url.h utils.h ftp.h html.h http.h
  139. http$o: wget.h options.h utils.h url.h host.h http.h retr.h connect.h mtch.h netrc.h
  140. init$o: wget.h options.h utils.h init.h url.h ftp.h host.h recur.h netrc.h
  141. main$o: wget.h options.h main.h utils.h url.h init.h retr.h recur.h ftp.h getopt.h wsstartup.h
  142. mtch$o: wget.h mtch.h
  143. netrc$o: wget.h utils.h netrc.h
  144. recur$o: wget.h options.h url.h recur.h utils.h retr.h http.h ftp.h mtch.h host.h
  145. retr$o: wget.h options.h utils.h retr.h url.h recur.h ftp.h html.h http.h host.h connect.h
  146. url$o: wget.h options.h utils.h url.h host.h ftp.h mtch.h html.h
  147. utils$o: wget.h utils.h options.h mtch.h
  148. version$o:
  149. wsstartup$o:
  150.